Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove intermediate docker images with DOCKER_BUILDKIT=1 #9408

Merged
merged 5 commits into from
Jan 12, 2022

Conversation

grubberr
Copy link
Contributor

@grubberr grubberr commented Jan 11, 2022

Signed-off-by: Sergey Chvalyuk grubberr@gmail.com

What

Docker multi-stage build produce intermediate image which consume disk space.

./gradlew :airbyte-integrations:connectors:destination-redshift:airbyteDocker

docker images
airbyte/destination-redshift             dev                 796a4716004e   5 seconds ago   700MB
<none>                                   <none>              76409be86212   10 seconds ago   993MB

How

We build with DOCKER_BUILDKIT=1 to avoid intermediate images:

./gradlew :airbyte-integrations:connectors:destination-redshift:airbyteDocker

docker images
airbyte/destination-redshift             dev                 796a4716004e   5 seconds ago   700MB

Recommended reading order

  1. x.java
  2. y.python

🚨 User Impact 🚨

Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.

Pre-merge Checklist

Expand the relevant checklist and delete the others.

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the new connector version is published, connector version bumped in the seed directory as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
@grubberr grubberr temporarily deployed to more-secrets January 11, 2022 10:29 Inactive
@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-redshift

🕑 connectors/destination-redshift https://github.com/airbytehq/airbyte/actions/runs/1682069326
✅ connectors/destination-redshift https://github.com/airbytehq/airbyte/actions/runs/1682069326
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                              Stmts   Miss  Cover
	 -------------------------------------------------------------------------------------
	 main_dev_transform_catalog.py                                         3      3     0%
	 main_dev_transform_config.py                                          3      3     0%
	 normalization/__init__.py                                             4      0   100%
	 normalization/destination_type.py                                    13      0   100%
	 normalization/transform_catalog/__init__.py                           2      0   100%
	 normalization/transform_catalog/catalog_processor.py                143     77    46%
	 normalization/transform_catalog/destination_name_transformer.py     155      8    95%
	 normalization/transform_catalog/reserved_keywords.py                 13      0   100%
	 normalization/transform_catalog/stream_processor.py                 520    333    36%
	 normalization/transform_catalog/table_name_registry.py              174     34    80%
	 normalization/transform_catalog/transform.py                         45     26    42%
	 normalization/transform_catalog/utils.py                             33      7    79%
	 normalization/transform_config/__init__.py                            2      0   100%
	 normalization/transform_config/transform.py                         148     34    77%
	 -------------------------------------------------------------------------------------
	 TOTAL                                                              1258    525    58%

@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/1682075792
❌ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/1682075792
🐛 https://gradle.com/s/susffudk7dmd6

@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-clickhouse

🕑 connectors/destination-clickhouse https://github.com/airbytehq/airbyte/actions/runs/1682077748
✅ connectors/destination-clickhouse https://github.com/airbytehq/airbyte/actions/runs/1682077748
No Python unittests run

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 10:52 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 10:53 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 10:54 Inactive
@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/1682170675
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/1682170675
Python tests coverage:

	 ---------- coverage: platform linux, python 3.8.10-final-0 -----------
	 Name                                                              Stmts   Miss  Cover
	 -------------------------------------------------------------------------------------
	 main_dev_transform_catalog.py                                         3      3     0%
	 main_dev_transform_config.py                                          3      3     0%
	 normalization/__init__.py                                             4      0   100%
	 normalization/destination_type.py                                    13      0   100%
	 normalization/transform_catalog/__init__.py                           2      0   100%
	 normalization/transform_catalog/catalog_processor.py                143     77    46%
	 normalization/transform_catalog/destination_name_transformer.py     155      8    95%
	 normalization/transform_catalog/reserved_keywords.py                 13      0   100%
	 normalization/transform_catalog/stream_processor.py                 520    333    36%
	 normalization/transform_catalog/table_name_registry.py              174     34    80%
	 normalization/transform_catalog/transform.py                         45     26    42%
	 normalization/transform_catalog/utils.py                             33      7    79%
	 normalization/transform_config/__init__.py                            2      0   100%
	 normalization/transform_config/transform.py                         148     34    77%
	 -------------------------------------------------------------------------------------
	 TOTAL                                                              1258    525    58%

@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-cassandra

🕑 connectors/destination-cassandra https://github.com/airbytehq/airbyte/actions/runs/1682176434
✅ connectors/destination-cassandra https://github.com/airbytehq/airbyte/actions/runs/1682176434
No Python unittests run

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 11:16 Inactive
@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-elasticsearch

🕑 connectors/destination-elasticsearch https://github.com/airbytehq/airbyte/actions/runs/1682178628
✅ connectors/destination-elasticsearch https://github.com/airbytehq/airbyte/actions/runs/1682178628
No Python unittests run

@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-gcs

🕑 connectors/destination-gcs https://github.com/airbytehq/airbyte/actions/runs/1682179593
✅ connectors/destination-gcs https://github.com/airbytehq/airbyte/actions/runs/1682179593
No Python unittests run

@grubberr
Copy link
Contributor Author

grubberr commented Jan 11, 2022

/test connector=connectors/destination-kafka

🕑 connectors/destination-kafka https://github.com/airbytehq/airbyte/actions/runs/1682180504
✅ connectors/destination-kafka https://github.com/airbytehq/airbyte/actions/runs/1682180504
No Python unittests run

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 11:18 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 11:18 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 11:19 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 11, 2022 11:19 Inactive
@grubberr grubberr requested a review from antixar January 11, 2022 11:38
@grubberr grubberr linked an issue Jan 11, 2022 that may be closed by this pull request
@grubberr grubberr self-assigned this Jan 11, 2022
@grubberr grubberr temporarily deployed to more-secrets January 11, 2022 19:51 Inactive
Copy link
Contributor

@antixar antixar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Please merge and bump version of SAT

@grubberr
Copy link
Contributor Author

grubberr commented Jan 12, 2022

/test connector=source-acceptance-test

🕑 source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1687977091
❌ source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1687977091
🐛 https://gradle.com/s/5anwtml4zwnmm

@grubberr grubberr temporarily deployed to more-secrets January 12, 2022 14:09 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 12, 2022 14:11 Inactive
@grubberr
Copy link
Contributor Author

grubberr commented Jan 12, 2022

/test connector=bases/source-acceptance-test

🕑 bases/source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1687990026
✅ bases/source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1687990026
No Python unittests run

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets January 12, 2022 14:14 Inactive
@grubberr
Copy link
Contributor Author

grubberr commented Jan 12, 2022

/publish connector=bases/source-acceptance-test

🕑 bases/source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1688020926
✅ bases/source-acceptance-test https://github.com/airbytehq/airbyte/actions/runs/1688020926

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment